package com.dhcc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.entity.ClientInstitutionRoleDepartmentPosition;
import com.dhcc.mapper.ClientInstitutionRoleDepartmentPositionMapper;
import com.dhcc.service.ClientInstitutionRoleDepartmentPositionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientInstitutionRoleDepartmentPositionServiceImpl extends ServiceImpl<ClientInstitutionRoleDepartmentPositionMapper, ClientInstitutionRoleDepartmentPosition> implements ClientInstitutionRoleDepartmentPositionService {
    @Resource
    private ClientInstitutionRoleDepartmentPositionMapper clientInstitutionRoleDepartmentPositionMapper;

    @Override
    public Integer updateDepartmentId(String departmentId,String institutionId, String institutionRoleId, String positionId) {
        return clientInstitutionRoleDepartmentPositionMapper.updateDepartmentId(departmentId,institutionId,institutionRoleId,positionId);
    }

    @Override
    public Integer insertPositionInforment(String institutionId, String institutionRoleId, String departmentId, String positionId) {
        return clientInstitutionRoleDepartmentPositionMapper.insertPositionInforment(institutionId,institutionRoleId,departmentId,positionId);
    }

    @Override
    public Integer delete(String institutionId, String institutionRoleId, String departmentId, String positionId) {
        return clientInstitutionRoleDepartmentPositionMapper.deleteInforment(institutionId,institutionRoleId,departmentId,positionId);
    }

    @Override
    public String selectDepartmentId(String institutionId, String institutionRoleId, String positionId) {
        return clientInstitutionRoleDepartmentPositionMapper.selectDepartmentId(institutionId,institutionRoleId,positionId);
    }

    @Override
    public List<String> selectPositionList(String institutionId, String institutionRoleId) {
        return clientInstitutionRoleDepartmentPositionMapper.selectPositionList(institutionId,institutionRoleId);
    }
}
